package com.ruoyi.yljf.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 书籍对象 yljf_book
 * 
 * @author metaee
 * @date 2025-02-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "yljf_book")
public class Book extends BasePlusEntity {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 书籍主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 书籍名称 */
    @Excel(name = "书籍名称")
    private String name;

    /** 书籍作者 */
    @Excel(name = "书籍作者")
    private String author;

    /** 书籍封面 */
    @Excel(name = "书籍封面")
    private String img;

    /** 书籍分类id */
    @Excel(name = "书籍分类id")
    private Long categoryId;

    /** 书籍是否免费(Y | N) */
    @Excel(name = "书籍是否免费(Y | N)")
    private String free;

    /** 内容简介 */
    @Excel(name = "内容简介")
    private String synopsis;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long pageViews;

    /** 书籍价格 */
    @Excel(name = "书籍价格")
    private BigDecimal bookPrice;

    /** 书籍章节数 */
    @Excel(name = "书籍章节数")
    private Long chapterCount;

    /** 书籍总字数 */
    @Excel(name = "书籍总字数")
    private Long wordCount;

    /** $column.columnComment */
    private Integer delFlag;

}
